<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="VIP审核">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">
                            <div class="toolbor-module search">
                                <form action="vip.html" method="post">
                                    <div class="formTit">用户名：</div>
                                    <input type="text" name="username" id="username" value="请输入用户名" class="search-value">
                                    <div class="formTit">客服用户名：</div>
                                    <input type="text" name="kefu_name" id="kefu" value="请输入客服用户名" class="search-value">
                                    <input type="button" value="搜索"  class="input-button" onclick="sousuo();">
                                </form>
                            </div>
                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <table class="data-list">
                                <tr class="header">
                                    <td>ID</td>
                                    <td>用户名</td>
                                    <td>客服名称</td>
                                    <td>添加时间</td>
                                    <td>用户类型</td>
                                    <td>状态</td>
                                    <td>操作</td>
                                </tr>
                                <#if vipinfo??> <#list vipinfo as obj>
                                    <#assign vipStatus=obj.vipStatus!(0)>
                                        <tr class="s">
                                            <td>${obj.user.userId!"-"}</td>
                                            <td>${obj.user.showName!"-"}</td>
                                            <td>${obj.kefuUsername!"-"}</td>
                                            <td><#if obj.kefuAddtime??>${obj.kefuAddtime}<#else>-</#if></td>
                                            <td><#if obj.user.userType.name??>${obj.user.userType.name}<#else>-</#if></td>
                                            <td><#if vipStatus==2>VIP申请中<#elseif vipStatus==1><font color="#009900">审核通过</font><#elseif vipStatus==-1><font color="#FF0000">申请失败</font><#else>未申请</#if></td>
                                            <td><#if vipStatus==2><a href="${request.getContextPath()}/admin/attestation/viewvip.html?userId=${obj.user.userId?c}">审核</a><#else>-</#if></td>
                                        </tr>
                                </#list> </#if>
                            </table>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>

                                <!--翻页系统--{-->
                                <div class="container s_formPage">
                                    <#import
                                            "../../common/page.html" as pager> <@pager.pagination page=page
                                        url="/admin/attestation/vip.html" map=params
                                        style="style1" />

                                </div>
                                <!--翻页系统--}-->
                            </div>
                            <!--底部工具栏--}-->
                            <script type="text/javascript">
                                var url = 'vip.html?search=true';
                                function sousuo(){
                                    var sou = "";
                                    var username = $("#username").val();
                                    var kefu_name = $("#kefu").val();
                                    if (username!=""&&username!="请输入用户名"){
                                        sou += "&username="+username;
                                    }
                                    if (kefu_name!=""&&kefu_name!="请输入客服用户名"){
                                        sou += "&kefu_name="+kefu_name;
                                    }
                                    if (sou!=""){
                                        location.href=url+sou;
                                    }
                                }
                            </script>
                        </div>
        </div>
    </div>
    <div class="mc-b">
        <#include "../foot.html">
    </div>
    <#include "../jsPage.html">
    </body>
</html>